package com.llmcu.efficient.validation.se.pojo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.Valid;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * xxxx
 *
 * @author liuling
 * @date 2025/3/23 18:15
 */
@Data
public class AddPeopleList {
    @NotBlank(message = "transSN不能为空")
    @Length(max=8,message = "transSN长度8")
    private String transSN;
    @NotEmpty(message = "context不能为空")
    private List<@NotNull(message = "context元素不能为null") @Valid ContextList> context;
}
